from django.conf.urls.defaults import *
from django.contrib import admin
from settings import MEDIA_ROOT

admin.autodiscover()

urlpatterns = patterns('',
    (r'^', include('best_buy_book.shop.urls')),
    (r'^accounts/', include('registration.urls')),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/(.*)', admin.site.root),
)

urlpatterns += patterns('django.views.static',
    (r'^css/(?P<path>.*)$',  'serve', {'document_root': MEDIA_ROOT + '/css/'}),
    (r'^img/(?P<path>.*)$',  'serve', {'document_root': MEDIA_ROOT + '/img/'}),
    (r'^js/(?P<path>.*)$',   'serve', {'document_root': MEDIA_ROOT + '/js/' }),
)